//
// phpGetImageType(theFilePath)
//
// Returns the type of image contained in the file.
//
Let (
	[
		$theFilePath = theFilePath;

		phpCode = "error_reporting(0); //(E_ALL & ~E_NOTICE);¶
		¶
		$theFilePath = fm_evaluate('$theFilePath');¶
		¶
		$imageInfo = getimagesize($theFilePath);¶
		echo $imageInfo[2];¶
	  "
	] ;
	PHP_Execute(phpCode)
)